package vn.easyticket.db.facet.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vn.easyticket.db.ServiceNameUtil;
import vn.easyticket.db.entity.M001_UserProfile;
import vn.easyticket.db.facet.M001_UserProfileRepositoryService;
import vn.easyticket.db.reposity.AbstractEntityReposity;
import vn.easyticket.db.reposity.M001_UserProfileRepository;

@Service( ServiceNameUtil.M001_USER_PROFILE_REPOSITY_SERVICE_NAMED )
public class M001_UserProfileRepositoryServiceImpl
    extends AbstractRepositoryServiceImpl<M001_UserProfile, Integer>
    implements M001_UserProfileRepositoryService
{
    @Autowired
    private M001_UserProfileRepository repository;
    

    public M001_UserProfile findByUserName( String id )
    {
        return repository.findByUserName( id );
    }

    @Override
    protected AbstractEntityReposity<M001_UserProfile, Integer> getRepository()
    {
        return this.repository;
    }
    
}
